package com.wxzz.elearing.course.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class CurriculumUnit extends BaseEntity {

    @NotNull(message = "请输入单元名称")
    @ApiModelProperty(value = "单元名称")
    private String unitName;

    @ApiModelProperty(value = "课程id")
    private Long curriculumId;

    @ApiModelProperty(value = "排序 从小到大")
    private Long curriculumUnitSort;

    @TableField(exist = false)
    @ApiModelProperty(value = "课程章节列表")
    private List<CurriculumSection> curriculumSections;

}
